﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using App.Common;
using QxFramework.Core;
using System;
public class Wall : SceneMonoBase
{
    public override void Awake()
    {
        base.Awake();
    }
    public override void OnEnable()
    {
        base.OnEnable();
        StartCoroutine(Init());
    }
    IEnumerator Init()
    {
        yield return 0;
        transform.Find("Sprite").GetComponent<SpriteRenderer>().sortingOrder = 100 - (int)(transform.position.y * 2);
    }
    public virtual void Inited()
    {

    }
    public override void LateUpdate()
    {
        base.LateUpdate();
    }
    public override void OnDrawGizmos()
    {
        Gizmos.color = new Color(0, 0, 0, 0.75f);
        base.OnDrawGizmos();
    }

}
